package com.aimls.common;

public class TestEnumDemo {

	public static void main(String[] args) {
		System.out.println(Enum.valueOf(TestEnum.class, "TRUE_LEFT").remark());
		/*doAction(TestEnum.TRUE_RIGHT);
		System.out.println(TestEnum.TRUE_LEFT.toString());*/
	}
	
	public static void doAction(TestEnum action){
		switch(action){
		case TRUE_LEFT:
			System.out.println("向左转");
			break;
		case TRUE_RIGHT:
			System.out.println("向右转");
			break;
		case SHOOT:
			System.out.println("射击");
			break;
		}
	}
}